package com.yuexun.beilunpatient.ui.contractmanage.api;

import com.yuexun.beilunpatient.base.BaseEntity;
import com.yuexun.beilunpatient.ui.contractmanage.bean.BaseBean;
import com.yuexun.beilunpatient.ui.contractmanage.bean.DiagnoseHistoryData;
import com.yuexun.beilunpatient.ui.contractmanage.bean.HospitalizationAdviceBean;
import com.yuexun.beilunpatient.ui.contractmanage.bean.HospitalizationRecordBean;
import com.yuexun.beilunpatient.ui.contractmanage.bean.InspectBean;
import com.yuexun.beilunpatient.ui.contractmanage.bean.OutPatientAdviceBean;
import com.yuexun.beilunpatient.ui.contractmanage.bean.RecordSummaryBean;
import com.yuexun.beilunpatient.ui.contractmanage.bean.TestBean;
import com.yuexun.beilunpatient.ui.contractmanage.bean.VideoBean;
import com.yuexun.beilunpatient.ui.contractmanage.bean.VideoListBean;

import java.util.Map;

import retrofit.http.FieldMap;
import retrofit.http.FormUrlEncoded;
import retrofit.http.POST;
import rx.Observable;

/**
 * Created by chenss on 2018/11/29.
 */
public interface ContractmanageApi {

    //获取患者门诊就诊记录
    @FormUrlEncoded
    @POST("inquirePatientDiagnoseHistory.json?")
    Observable<BaseEntity<BaseBean<DiagnoseHistoryData>>> inquirePatientDiagnoseHistory(@FieldMap Map<String, String> praise);

    //获取患者住院就诊记录
    @FormUrlEncoded
    @POST("inquireHospitalizationHistory.json?")
    Observable<BaseEntity<HospitalizationRecordBean>> inquireHospitalizationHistory(@FieldMap Map<String, String> praise);

    //获取检查申请单列表
    @FormUrlEncoded
    @POST("inquireApplyCheckPageList.json?")
    Observable<BaseEntity<InspectBean>> inquireApplyCheckPageList(@FieldMap Map<String, String> praise);

    //检验单列表
    @FormUrlEncoded
    @POST("inquireApplyAssayPageList.json?")
    Observable<BaseEntity<TestBean>> inquireApplyAssayPageList(@FieldMap Map<String, String> paramMap);

    @FormUrlEncoded
    @POST("inquirePrescriptionInfo.json?")
    Observable<BaseEntity<OutPatientAdviceBean>> inquirePrescriptionInfo(@FieldMap Map<String, String> paramMap);

    @FormUrlEncoded
    @POST("inquireInstruct.json?")
    Observable<BaseEntity<HospitalizationAdviceBean>> inquireInstruct(@FieldMap Map<String, String> paramMap);

    //云影像列表
    @FormUrlEncoded
    @POST("cIcheckList.json?")
    Observable<VideoListBean> cIcheckList(@FieldMap Map<String, String> paramMap);

    //云影像详情
    @FormUrlEncoded
    @POST("cIcheckInfo.json?")
    Observable<VideoBean> cIcheckInfo(@FieldMap Map<String, String> paramMap);

    //出院小结
    @FormUrlEncoded
    @POST("summaryOfDischarge.json?")
    Observable<BaseEntity<RecordSummaryBean>> summaryOfDischarge(@FieldMap Map<String, String> paramMap);
}
